package com.five.esearch;

import com.five.dto.NovelEsDTO;
import com.five.pojo.Novel;

import java.util.List;

public interface INovelDataSyncService {
    void syncSingleNovel(Novel novel)throws Exception;

    void fullSync()throws Exception;

    NovelEsDTO convertToEsDto(Novel novel);

    List<NovelEsDTO> convertToEsDtos(List<Novel> mysqlNovels)throws Exception;

    List<Novel> queryNovelsFromMysql()throws Exception;
}